import { useEffect, useState } from "react";
import { stu_list } from '../utils/api3'
//自定义钩子
export var useStulist=()=>{
     var [fromlist1,setFromlist]=useState([]);
    useEffect(()=>{
        stu_list().then((res)=>{
            setFromlist(res.data)
        })
    },[])
    console.log("管",fromlist1)
    return [fromlist1,setFromlist];
}
   
